//
//  InfoView.m
//  coffee
//
//  Created by student4 on 2020/12/6.
//  Copyright © 2020 MOSAD. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "InfoView.h"

@implementation InfoView
-(void)styleTextView:(UITextView*)view{
    [view setEditable:FALSE];
    [view setTextColor:[UIColor blackColor]];
}
-(void)viewInit{
}
@end


@implementation RenameView

-(void)viewInit{
    float top = 100;
    _iname = [[UITextField alloc]initWithFrame:CGRectMake(60, top+150, [UIScreen mainScreen].bounds.size.width-120, 30)];
    _iname.borderStyle = UITextBorderStyleRoundedRect;
    _iname.autocapitalizationType = UITextAutocapitalizationTypeNone;
    //    _iname.layer.borderColor = CFBridgingRetain([[UIColor lightGrayColor] CGColor]);
    _iname.layer.borderWidth = 1.0;
    
    _rename = [[UIButton alloc]initWithFrame:CGRectMake(60, top+190, [UIScreen mainScreen].bounds.size.width-120, 30)];
    [_rename setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    _rename.layer.masksToBounds = YES;
    _rename.layer.cornerRadius = 5.0;
    _rename.layer.borderWidth = 1.0;
    [_rename setTitle:@"修改" forState:UIControlStateNormal];
    [self addSubview:_iname];
    [self addSubview:_rename];
}

@end
